<?php




namespace App\Http\Controllers\Api\Divination;


use App\Http\Controllers\Api\BasicController;
use App\Models\Divination\Tarot;
use GatewayWorker\Lib\Gateway;
use Jiannei\Response\Laravel\Support\Facades\Response;

class BaziliuyaoController extends BasicController
{

    /**
     * @api {post} /div/quiz 预约&支付
     * @apiDescription
     * @apiHeader {String} Authorization='Bearer '
     */

    public function draw(){
        for ($i=1;$i<=6;$i++){
            $result[$i]=$this->generate();
        }
        return Response::success($result);
    }

    private function generate(){
        $row=[];
        for ($i=0;$i<3;$i++){
            $row[]=mt_rand(0,1);
        }
        return $row;
    }
}
